package com.five.years.common.utils;


import com.five.years.common.Constants;

public class EnvUtils {

    private static final String scheduleEnable = SpringUtils.getProperties("schedule.enable");

    private static final String deplayEnv = SpringUtils.getProperties("deploy.env");

    public static boolean scheduleEnable() {
        return Constants.TRUE.equals(scheduleEnable);
    }

    public static boolean isPro() {
        return Constants.DEPLOY_ENV.PRO.equals(deplayEnv);
    }

    public static String deplayEnv(){
        return deplayEnv;
    }

}
